package com.galen.wxRead.server;

import com.galen.wxRead.bean.wxBean.*;
import com.galen.wxRead.bean.wxTo.*;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;


@Service
public class WxApiServer {

    @Autowired
    private WeChatGoHttpClient weChatApiHttpClient;
    
    /////////消息//////////////////////////////////////////////////////////////////////////////////////

    public WxGetA8KeyBean wxGetA8Key(WxGetA8KeyTo wxGetA8KeyTo) {
        WxGetA8KeyBean wxGetA8KeyBean = weChatApiHttpClient.wxGetA8Key(wxGetA8KeyTo);
        return wxGetA8KeyBean;
    }

    public WxReadBean wxReadArticle(WxReadBizArticleTo wxReadBizArticleTo) {
        WxReadBean wxReadBean = weChatApiHttpClient.wxReadArticle(wxReadBizArticleTo);
        return wxReadBean;
    }

    public WxHeartBean wxHeart(WxBaseTo wxBaseTo){
        return weChatApiHttpClient.wxHeartBeat(wxBaseTo);
    }

}
